import Vue from 'vue';

import '@/common/js/rem';

import '@/common/css/reset2.css';
import '@/common/css/common.css';

import axios from 'axios';
axios.defaults.withCredentials = true;
import App from './passport.vue';

Vue.config.productionTip = false;
Vue.prototype.Axios = axios;

import Axios from '@/common/js/commonAjax';
Vue.prototype.Axios = Axios;

window.Axios = Axios;
import CommonRouter from '@/common/js/commonRouter';
Vue.prototype.URL = CommonRouter;

window.CommonRouter = CommonRouter;

import FastClick from 'fastclick';
// FastClick(document.body)
if ('addEventListener' in document) {
  document.addEventListener(
    'DOMContentLoaded',
    function() {
      FastClick.attach(document.body);
    },
    false
  );
}

// import urlTotalList from '@/common/js/commonRouter'
// Vue.prototype.URL = urlTotalList

// const app=new Vue({
//   el: '#app',
//   template: '<App/>',
//   components: { App }
// })

const app = new Vue({
  render: h => h(App)
}).$mount('#app'); // $mount等同于Vue内的el属性
